function _initUserSession() {
_initRecorder();
-
- global.screen.override_workspace_layout(Meta.ScreenCorner.TOPLEFT, false, -1, 1);
}
function start() {
if (sessionMode.sessionType == Shell.SessionType.USER)
_initUserSession();
+ if (sessionMode.hasWorkspaces)
+ global.screen.override_workspace_layout(Meta.ScreenCorner.TOPLEFT,
+ false, -1, 1);
+
if (sessionMode.allowExtensions) {
ExtensionSystem.init();
ExtensionSystem.loadExtensions();
return true;
}
- // None of the other bindings are relevant outside of the user's session
- if (sessionMode.sessionType != Shell.SessionType.USER)
- return false;
-
switch (action) {
// left/right would effectively act as synonyms for up/down if we enabled them;
// but that could be considered confusing; we also disable them in the main view.
//
// case Meta.KeyBindingAction.WORKSPACE_LEFT:
+ // if (!sessionMode.hasWorkspaces)
+ // return false;
+ //
// wm.actionMoveWorkspaceLeft();
// return true;
// case Meta.KeyBindingAction.WORKSPACE_RIGHT:
+ // if (!sessionMode.hasWorkspaces)
+ // return false;
+ //
// wm.actionMoveWorkspaceRight();
// return true;
case Meta.KeyBindingAction.WORKSPACE_UP:
+ if (!sessionMode.hasWorkspaces)
+ return false;
+
wm.actionMoveWorkspaceUp();
return true;
case Meta.KeyBindingAction.WORKSPACE_DOWN:
+ if (!sessionMode.hasWorkspaces)
+ return false;
+
wm.actionMoveWorkspaceDown();
return true;
case Meta.KeyBindingAction.PANEL_RUN_DIALOG:
allowExtensions: false,
allowKeybindingsWhenModal: true,
hasRunDialog: false,
+ hasWorkspaces: false,
sessionType: Shell.SessionType.GDM },
'user': { hasOverview: true,
allowExtensions: true,
allowKeybindingsWhenModal: false,
hasRunDialog: true,
+ hasWorkspaces: true,
sessionType: Shell.SessionType.USER }
};